package com.hdu.clj.fitness

import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import android.widget.Toast

class userDatabase(val context: Context, name:String, version:Int): SQLiteOpenHelper(context,name,null,version) {

    private val dayNumBook = "create table Users (" +
            "id integer primary key autoincrement," +
            "name text," +
            "pass text," +
            "dayNum integer," +
            "totalNum integer," +
            "total integer," +
            "cardNum integer," +
            "curTotal integer," +
            "acc text)"

    override fun onCreate(db: SQLiteDatabase) {
        db.execSQL(dayNumBook)
    }

    override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {

    }
}